<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title>{$tkd.title|parseTpl}</title>
    <meta name="keywords" content="{$tkd.keywords|parseTpl}">
    <meta name="description" content="{$tkd.description|parseTpl}">
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/ptm.min.css" />
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/skin.min.css" />
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/font-awesome.min.css" />
</head>
<body>
<header class="ptm-bar ptm-bar-nav  ptm-fix">
    <a class="ptm-pull-left" href="{$kx.config.mobileurl}">
        <span class="ptm-iconfont fa fa-home" style="font-size:22px;"></span>
    </a>
    <div class="ptm-title">{$novel.name}</div>
    <a class="ptm-pull-right" href="{link=user.index.index}">
        <span class="ptm-iconfont  fa fa-user"></span>
    </a>
</header>
<section class="ptm-content pt-infopage" style="margin-top:45px;background: #fff">
    <div class="baseinfo">
        <img src="{$novel.cover}" alt="{$novel.name}">
        <div class="pt-novel">
            <h1 class="pt-name"><a href="{link=novel.novel.index novelid=$novel.id pinyin=$novel.pinyin}">{$novel.name}</a></h1>
            <div class="pt-info">作者:{$author.name}</div>
            <div class="pt-info">分类:<a href="{link=novel.category.list categoryid=$category.id key=$category.key}">{$category.name}</a></div>
            <div class="pt-info">来源:{$source.host}</div>
            <div class="pt-info">更新:{$last.time|cntime}</div>
        </div>
    </div>
    {if $marked}
    <div class="twobutton ptm-clearfix">
        <div class="ptm-col-xs-6">
            <a class="ptm-btn ptm-btn-default ptm-btn-block" href="{link=user.mark.del novelid=$novel.id}">取消收藏</a>
        </div>
        <div class="ptm-col-xs-6">
            <a class="ptm-btn ptm-btn-primary ptm-btn-block" href="{$lasturl}">继续阅读</a>
        </div>
    </div>
    {else}
    <div class="twobutton ptm-clearfix">
        <div class="ptm-col-xs-6">
            <a class="ptm-btn ptm-btn-warning ptm-btn-block" href="{link=user.mark.add novelid=$novel.id}">加入书架</a>
        </div>
        <div class="ptm-col-xs-6">
            <a class="ptm-btn ptm-btn-primary ptm-btn-block" href="{link=novel.chapter.read novelid=$novel.id pinyin=$novel.pinyin chapterid=1}">开始阅读</a>
        </div>
    </div>
    {/if}
    <div class="ptm-line-x"></div>
    <div class="intro" >
        {$novel.intro|showintro}
    </div>
</section>
<section class="pt-infopage-more">
    <div class="ptm-card" style="margin-top:15px;">
        <div class="ptm-card-header">
            最近章节
        </div>
        <div class="ptm-card-content pt-dir">
            <ul class="ptm-list-view">
                {block method="chapter.list" name=list novelid=$novel.id sort=desc num=5}
                {section loop="list"}
                <li class="ptm-list-view-cell">
                    <a class="ptm-arrow-right" href="{link=novel.chapter.read novelid=$novel.id pinyin=$novel.pinyin chapterid=$loop.chapterid}" title="{$novel.name} {$loop.name} {$loop.time|date='Y-m-d H:i:s'}">{$loop.name}</a>
                </li>
                {/section}
            </ul>
        </div>
        <div class="ptm-card-footer" style="font-size:14px;">
            <a href="{link=novel.novel.dir novelid=$novel.id pinyin=$novel.pinyin}">查看目录></a>
        </div>
    </div>
    <div class="ptm-card" style="margin-top:15px;">
        <div class="ptm-card-header ptm-clearfix">
            <div class="ptm-pull-left">
                热门推荐
            </div>
        </div>
        <div class="ptm-card-content" style="padding:0;">
            <ul class="ptm-list-view ptm-grid-view pt-card-1">
                {block method="novel.list" name="list" sort="monthvisit" num=6}
                {loop=list}
                <li class="ptm-list-view-cell ptm-img ptm-col-xs-4">
                    <div class="imgarea">
                    <a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" title="{$loop.novel.name}"><img class="ptm-img-object" src="{$loop.novel.cover}" alt="{$loop.novel.name}"></a>
                        </div>
                    <div class="ptm-img-body">
                        <span class="ptm-block pt-name ptm-text-cut ptm-text-left"><A href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" title="{$loop.novel.name}">{$loop.novel.name}</A></span>
                        <span class="ptm-block pt-author ptm-text-cut ptm-text-left"><a href="{link=author.space.index authorid=$loop.author.id pinyin=$loop.author.pinyin name=$loop.author.name}">{$loop.author.name}</a></span>
                    </div>
                </li>
                {/loop}
            </ul>
        </div>
    </div>
    <div class="ptm-card" style="margin-top:15px;">
        <div class="ptm-card-header ptm-clearfix">
            <div class="ptm-pull-left">
                来源更新
            </div>
        </div>
        <div class="ptm-card-content">
            <ul class="pt-card pt-card-6">
                {block method=novel.sitelast name=list novelid=$novel.id}
                {loop=list}
                <li>
                    <div class="pt-novel">
                        <div class="pt-num ptm-pull-right"><a href="{link=novel.novel.dir novelid=$novel.id pinyin=$novel.pinyin siteid=$loop.siteid}" class="ptm-text-grey">{$loop.sitename}</a></div>
                        <span class="pt-name"><a href="{link=novel.novel.dir novelid=$novel.id pinyin=$novel.pinyin siteid=$loop.siteid}">{$loop.name}</a></span>
                    </div>
                </li>
                {/loop}
            </ul>
        </div>
    </div>

    <div class="ptm-card" style="margin-top:15px;">
        <div class="ptm-card-header ptm-clearfix">
            <div class="ptm-pull-left">
                <a rel="nofollow" href="{link=novel.comment.list novelid=$novel.id pinyin=$novel.pinyin}" class="more">评论区({$data.comment})</a>
            </div>
        </div>
        <div class="ptm-card-content" style="font-size:14px;">
            <ul class="ptm-commentlist ptm-list-view">
                {block method='comment.list' name="list" type="novel" typeid=$novel.id num=10 cachetime=86445}
                {if $list}
                {loop=list}
                <li class="ptm-list-view-cell ptm-img">
                    <div>
                        <a href="#" class="ptm-img-object ptm-pull-left"><img class="ptm-img-object ptm-radius50 avatar" src="{$loop.user.avatar}"></a>
                    </div>
                    <div class="ptm-img-body">
                        <p class="title">
                            <a href="#">{$loop.user.name}</a>
                            <span>{$loop.datetime|cntime}</span>
                        </p>
                        <a class="content ptm-text-cut3" href="{link=novel.comment.post novelid=$novel.id pinyin=$novel.pinyin commentid=$loop.id}">{$loop.content|nl2br}</a>
                    </div>
                </li>
                {/loop}
                {else}
                <li>
                    本书暂无评论
                </li>
                {/if}
                <li>
                    {if IS_LOGIN}
                    <form action="{link=novel.comment.add}" method="post">
                        <input type="hidden" name="type" value="novel">
                        <input type="hidden" name="type_id" value="{$novel.id}">
                        <textarea name="content" class="text" style="font-size:14px;"></textarea>
                        <button class="btn btn-success fr">发布评论</button>
                    </form>
                    {else}
                    <div class="ptm-text-center">请您 <a href="https://m.kuaiyankanshu.net{link=user.public.register}">注册</a> 或 <a href="https://m.kuaiyankanshu.net{link=user.public.login}">登陆</a> 之后再发布评论</div>
                    {/if}
                </li>
            </ul>
        </div>
    </div>
</section>
{include file="/system/footer"}
</body>
</html>